/**
 * @name: loading
 * @author: win10
 * @date: 2023/11/14 11:47
 * @description：loading
 * @update: 2023/11/14 11:47
 */
const ora = require("ora");
// 定义一个loading
const spinner = ora("Loading unicorns");
// 启动loading
spinner.start();
setTimeout(() => {
    spinner.color = "yellow";
    spinner.text = "Loading rainbows";
}, 1000);

// loading 成功
spinner.succeed();
// loading 失败
spinner.fail();
